﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 用户无法操作表
    /// </summary>
    public partial class SysPower
    {
        /// <summary>
        /// 权限ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int SysPowerID { get; set; }

        /// <summary>
        /// 菜单=0,按钮=1,特殊权限=2
        /// </summary>
        public EnumPowerType EnumPowerType { get; set; }

        /// <summary>
        /// 是否在操作列表里;按钮的情况,并且在操作列里才为true
        /// </summary>
        public bool IsInOp { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string SysPowerName { get; set; }

        /// <summary>
        /// 页面名称或模块名称
        /// </summary>
        public string WebPath { get; set; }

        /// <summary>
        /// 链接相关 如:webapi的服务端ajax地址(多个以逗号隔开)
        /// </summary>
        public string SysPowerValue { get; set; }

        /// <summary>
        /// 链接相关 如:页面需要的其它路径(多个以逗号隔开)
        /// </summary>
        public string SysPowerValue2 { get; set; }

        /// <summary>
        /// 相关Json对象
        /// </summary>
        public string Json { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderID { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// 所属父级
        /// </summary>
        public int? ParentID { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
